package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdHomepageMapper;
import com.diankangwo.factory.entity.TdHomepage;
import com.diankangwo.factory.service.TdHomePageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service("TdHomePageService")
public class TdHomePageServiceImpl implements TdHomePageService {

    @Autowired
    private TdHomepageMapper tdHomepageMapper;

    @Override
    @Transactional
    public int deleteByPrimaryKey(Integer id) {
        return tdHomepageMapper.deleteByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int insert(TdHomepage record) {
        return tdHomepageMapper.insert(record);
    }

    @Override
    @Transactional
    public int insertSelective(TdHomepage record) {
        return tdHomepageMapper.insertSelective(record);
    }

    @Override
    public TdHomepage selectByPrimaryKey(Integer id) {
        return tdHomepageMapper.selectByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int updateByPrimaryKeySelective(TdHomepage record) {
        return tdHomepageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(TdHomepage record) {
        return tdHomepageMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdHomepage> queryList(Map<String, Object> map) {
        return tdHomepageMapper.queryList(map);
    }
}
